//动态加载components文件夹下的所有组件
import Tabs from "./tabs/index.vue";
import Header from "./header/index.vue";
import SvgIcon from "./SvgIcon/index.vue";
import VideoPlayer from "./videoPlayer/index.vue";
import GlobalLoading from "./GlobalLoading/index.vue";
import Dice from "./dice/index.vue";
import Snow from "./snow/index.vue";
import Robot from "./Robot/index.vue";
import ScreenMap from "./screenMap/index.vue";

const components: any = { Tabs, Header, SvgIcon, VideoPlayer, GlobalLoading, Dice, Snow, Robot, ScreenMap }
export default {
  install(app) {
    // 遍历auto文件下所有组件模块
    // app.component('Tabs', Tabs)
    // app.component('Header', Header)
    // app.component('SvgIcon', SvgIcon)
    // app.component('GlobalLoading', GlobalLoading)
    // app.component('Dice', Dice)
    Object.keys(components).forEach((key) => {
      app.component(key, components[key]);
    });
  }
};